package com.hb.core.pojo.portal.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hb.core.pojo.parent.MPCommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("portal_file")
@ApiModel(value="PortalFile", description="门户下载文件表")
public class PortalFile extends MPCommonEntity {
    @ApiModelProperty(value = "文件ID")
    private Long fileId;

    @ApiModelProperty(value = "发布时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publishTime;

    @ApiModelProperty(value = "文件名")
    private String fileName;

    @ApiModelProperty(value = "下载次数")
    private Integer downloadCount;
}
